import request from "@/utils/httpRequest";

export default {
	save: function (inputForm) {
		return request({
			url: "/receipt/purchaseReceipt/save",
			method: "post",
			data: inputForm,
		});
	},

	delete: function (ids) {
		return request({
			url: "/receipt/purchaseReceipt/delete",
			method: "delete",
			params: { ids: ids },
		});
	},

	queryById: function (id) {
		return request({
			url: "/receipt/purchaseReceipt/queryById",
			method: "get",
			params: { id: id },
		});
	},

	list: function (params) {
		return request({
			url: "/receipt/purchaseReceipt/list",
			method: "get",
			params: params,
		});
	},

	exportTemplate: function () {
		return request({
			url: "/receipt/purchaseReceipt/import/template",
			method: "get",
			responseType: "blob",
		});
	},

	exportExcel: function (params) {
		return request({
			url: "/receipt/purchaseReceipt/export",
			method: "get",
			params: params,
			responseType: "blob",
		});
	},

	importExcel: function (data) {
		return request({
			url: "/receipt/purchaseReceipt/import",
			method: "post",
			data: data,
		});
	},

	queryByProjectId: function (id) {
		return request({
			url: "/receipt/purchaseReceipt/queryByProjectId",
			method: "get",
			params: { projectId: id },
		});
	},

	paymentPlan: function (inputForm) {
		return request({
			url: "/receipt/purchaseReceipt/paymentPlan",
			method: "post",
			data: inputForm,
		});
	},

	confirmPayment: function (inputForm) {
		return request({
			url: "/receipt/purchaseReceipt/confirmPayment",
			method: "post",
			data: inputForm,
		});
	},
	getApprovalData: function (params) {
		return request({
			url: "/cost/projectCost/getApprovalData",
			method: "get",
			params: params
		});
	},
	terminateProcess: function (params) {
		return request({
			url: "/cost/projectCost/terminateProcess",
			method: "get",
			params: params
		});
	},
		getClaimList: function (params) {
		return request({
			url: "/claim/purchaseClaim/queryByProjectId",
			method: "get",
			params: params
		});
	},
		confirmPaymentClaim: function (inputForm) {
		return request({
			url: "/claim/purchaseClaim/paymentPlan",
			method: "post",
			data: inputForm,
		});
	},
		confirmPaymentNew: function (inputForm) {
		return request({
			url: "/claim/purchaseClaim/confirmPayment",
			method: "post",
			data: inputForm,
		});
	},

	
};
